

# 列表的复制
# 1. 列表没有复制
L1 = [11, 22, 33, 44]
L2 = L1
L2[2] = 99
print(L1)  # [11, 22, 99, 44]

# 2. 浅拷贝（shallow copy）列表
L3 = [11, 22, 33, 44]
L4 = L3.copy()  # 复制新的列表
L4[2] = 8888
print('L3:', L3)  # [11, 22, 33, 44]
print('L4:', L4)  # [11, 22, 8888, 44]